<?php
include("../mysql_connect/conexao.php");
header('Content-Type: text/html; charset=utf-8');


?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html">
    <meta charset=utf-8>
    <title><?=$titulo?></title>
    <link rel="stylesheet" href="../css/datatables/table_jui.css" />
    <link rel="stylesheet" href="../css/datatables/jquery-ui-1.8.4.custom.css" />
    <script type="text/javascript" src="../js/jquery.mim.js"></script>
    <script type="text/javascript" src="../js/jquery.dataTables.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function()
        {
            oTable = $('#example').dataTable({
                "bPaginate": true,
                "bJQueryUI": true,
                "sPaginationType": "full_numbers"
            });
        });
    </script>


</head>
<style>
    body
    {
	background-image:url(../img/bg2.jpg);
	background-size:100%;
	font-family: Tahoma, Geneva, sans-serif;
    }
</style>
    <body>
<h3> <strong>Agendar/Confirmar periodo de férias</strong></h3>



<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
      <thead>
                <tr>
                    <th>Matr. Cliente</th>
                    <th>Nome</th>
                    <th>Data Inicio</th>
                    <th>Data Fim</th>
                    <th>Quant. Dias</th>
                    <th>Situação</th>
                    <th>Alterar Status</th>
                  
                </tr>
            </thead>
            <tbody>

                <?php
                if (count($dados) > 0){

                    foreach ($dados as $linha) { ?>
                    <tr>
                        <td><?=$linha['matriculaCliente']?></td>
                        <td><?=$linha['nome']?></td>
                        <td><?=datatoBR($linha['dataInicioFerias'])?></td>
                        <td><?=datatoBR($linha['dataFimFerias'])?></td>
                        <td><?=quant_dias($linha['dataInicioFerias'], $linha['dataFimFerias'])+1?></td>
                        <td><?=$linha['situacao_ferias']?></td>
                        <td align="right" >-</td>
                    </tr>
                    <?php }
                } else{  ?>
                    <tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                <?php } ?>


            </tbody>
        </table>


<a href="../menu.php"><img src='../img/home1.png'width="70"/></a>
<a href="index.php"><img src='../img/retorno.png'width="70"/></a>
</body>
</html>